<?php

namespace app\common\model;

use think\Model;

class Products extends Model
{
    /**
     * 获取器
     * 
     * 打开方式
     */
    public function getTargetAttr($value)
    {
        $target = ['_self' => '本窗口', '_blank' => '新窗口'];
        return $target[$value];
    }
}